package summer_vacation.lvchang.myyVacation;

/**
 * Created by Administrator on 2015/9/6.
 */
public class Text19 {
    public static void main(String[] args) {
        int sign=1;
        double deno=2.0,sum=1.0,term;
        while (deno<=100){
            sign= -sign;
            term=sign/deno;
            sum=sum+term;
            deno=deno+1;
        }
        System.out.println(sum);
    }
}
